﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Globalization;

namespace NumberToTextField
{
  public  abstract  class NumbertoTextBase
    {
       CultureInfo locale;

       public LanguageManager GetLanguageManager()
        {
            LanguageManager LANGManager;
            if (locale == null)
                LANGManager = new LanguageManager(System.Threading.Thread.CurrentThread.CurrentUICulture);
            else
                LANGManager = new LanguageManager(locale);

            return LANGManager;
        }


       public abstract string parse(string Value);
       public void setLocale(CultureInfo Value)
        {
            locale = Value; 
        }

 
    }

}
